package com.qingcheng.service;

import com.qingcheng.pojo.order.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(value = "service-order")
public interface OrderServiceFeign {

@PostMapping(value = "/orders/order/service/getbyorder/{username}")
public List<Order> selectOrderList(@PathVariable("username") String username);

}
